Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NTP servers variable if chronyc returns success #4080

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

rouming
Copy link
Contributor

@rouming rouming commented Jul 11, 2024

This PR does the following:

  • update NTP servers in case of success only
    NTPSERVERS variable should be updated only if chronyc returns
    success. This behavior gurantees, that in case of failure NTP servers
    update will be repeated shortly and we won't stay with blank
    NTP servers list.

  • reduce NTP servers update delay from 5min to 30sec
    There is no good reason to delay NTP server update to 5
    minutes, let's make cycles shorter and set 30 seconds.

CC: @rene

@rouming rouming requested a review from rene July 11, 2024 13:55
`NTPSERVERS` variable should be updated only if `chronyc` returns
success. This behavior gurantees, that in case of failure NTP servers
update will be repeated shortly and we won't stay with blank NTP
servers list.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
Reported-by: Renê de Souza Pinto <rene@renesp.com.br>
…30sec

There is no good reason to delay NTP server update to 5
minutes, let's make cycles shorter and set 30 seconds.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
@rouming rouming force-pushed the ntpservers-update-on-success branch from fa1405c to da9be14 Compare July 11, 2024 14:06
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rouming , LGTM...

@eriknordmark eriknordmark merged commit c784fd6 into lf-edge:master Jul 11, 2024
35 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants